home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 17 / CU Amiga Magazine's Super CD-ROM 17 (1997)(EMAP Images)(GB)[!][issue 1997-12].iso / CUCD / Programming / AMOSList / AMOSLIST.0997 / 000334_amos-request@svcs1.digex.net_Sat Sep 27 14:47:11 1997.msg < prev    next >
Text File  |  1997-10-01  |  3KB  |  89 lines

  1. Received: from svcs1.digex.net (svcs1.digex.net [204.91.197.224])
  2.     by mail4.access.digex.net (8.8.5/8.8.5) with ESMTP id OAA17193
  3.     for <mcox@access.digex.net>; Sat, 27 Sep 1997 14:47:11 -0400 (EDT)
  4. Received: (from daemon@localhost)
  5.     by svcs1.digex.net (8.8.5/8.8.5) id MAA12976
  6.     for amos-out; Sat, 27 Sep 1997 12:14:14 -0400 (EDT)
  7. Received: from mail4.access.digex.net (mail4.access.digex.net [205.197.247.2])
  8.     by svcs1.digex.net (8.8.5/8.8.5) with ESMTP id MAA12973
  9.     for <amos-list@svcs1.digex.net>; Sat, 27 Sep 1997 12:14:13 -0400 (EDT)
  10. Received: from mailhost.sosbbs.com (sosbbs.com [204.186.168.100])
  11.     by mail4.access.digex.net (8.8.5/8.8.5) with SMTP id MAA03176
  12.     for <amos-list@access.digex.net>; Sat, 27 Sep 1997 12:14:11 -0400 (EDT)
  13. Received: from gbenjam (204.186.168.54) by mailhost.sosbbs.com
  14.  (EMWAC SMTPRS 0.81) with SMTP id <B0000111750@mailhost.sosbbs.com>;
  15.  Sat, 27 Sep 1997 12:15:47 -0400
  16. Message-ID: <B0000111750@mailhost.sosbbs.com>
  17. From: "Garfield Benjamin" <gbenjam@sosbbs.com>
  18. To: <sniper@technet2000.com.au>, "AMOS HELP" <amos-list@access.digex.net>
  19. Subject: Re: Palette swapping, changing...
  20. Date: Sat, 27 Sep 1997 12:21:03 -0400
  21. X-MSMail-Priority: Normal
  22. X-Priority: 3
  23. X-Mailer: Microsoft Internet Mail 4.70.1155
  24. MIME-Version: 1.0
  25. Content-Type: text/plain; charset=ISO-8859-1
  26. Content-Transfer-Encoding: 7bit
  27. Status: O
  28. X-Status: 
  29.  
  30. >  Hi guys,
  31.  
  32. Hello...
  33.  
  34.  
  35. > I'm trying to work out how to use palette organising, like in Mk2 and any
  36. > beat em up.
  37.  
  38. Useful in many projects.
  39.  
  40.  
  41. > Each character uses 16 cols, but I need it so they can take up either the
  42. > first 16, or the next 16 cols, even if they aren't actually MADE in that
  43. > palette (so character 1 uses the first 16 colours and the next characters
  44. > uses the next 16, but they were both drawn using a  different palette).
  45.  
  46. Yes, this would be ideal for many situations.
  47.  
  48.  
  49. >  HOW THE HELL DO I DO THIS?
  50.  
  51. You have two primary options:
  52.  
  53. Option #1 - Store TWO GFX/ANIM Sets on disk (harddisk preferrably)
  54.    Now, you can simply load in the desired GFX-Set. Say character 1 uses
  55.    the first 16 colors, so you load in CHAR1GfxSet1.
  56.  
  57. Advantages are SPEED and EASE of use.
  58. Disadvantages are DOUBLE memory requirements for your GFX/ANIMs.
  59.  
  60.  
  61. Option #2 - Dynamically create each GFX-Set as needed. This would 
  62. essentially involve a simple image-palette remapping routine. In this case,
  63. you would load in a character and then remap all of the char's images to
  64. use the first or second set of 16 colors as needed.
  65.  
  66. Advantages are FLEXIBILITY and LOW MEMORY OVERHEAD.
  67. Disadvantages are LARGE DELAYS while the chars are remapped.
  68.  
  69.  
  70. If it was me, I'd probably choose the second option. It would allow the
  71. most control and flexibility. This routine could also be re-used in future
  72. projects.
  73.  
  74. If you need some assistance implementing the second option then just let
  75. me know...
  76.  
  77. Or, you might prefer the first option. In this case you'd just create all
  78. of your images for the characters. Then go into a GOOD Paint program like
  79. PPaint and remap all the images to the first 16 colors to create the
  80. LowerGFXSet and then remap all the images to the last 16 colors to create
  81. the UpperGFXSet.
  82.  
  83. Anyway, I hope this helps...
  84.  
  85.  
  86.  
  87. Take Care
  88. GARFIELD
  89.